<?php
$oJobs = JobHandler::getJobs();
?>
<div class="hidden" id="layer_job_urgencies" style="visibility: visible;">
<table class="boxborder" cellspacing="0">
	<tr>
		<td class="boxbody center" colspan="2"><?php print msg('Urgencies') ?></td>
	</tr>
	<tr>
		<td class="listtop" style="text-align: center;">
			<a href="javascript: showBox('job-urgencyadd'); layerHide('layer_job_urgencies');"><img src="images/<?php print $_SESSION['oUserVars']['images'] ?>/urgency-add.png" border="0"></a>
		</td>
		<td class="listtop"><?php print msg('Urgencies') ?></td>
	</tr>
<?php
for ($i = 0; $i < count($oJobs[$_SESSION['iJobID']]->sUrgencies); $i++)
{
	?>
	<tr>
		<td class="listentity" style="text-align: center;">
			<a href="javascript: showBox('job-urgencydelete', 'iUrgency=<?php print $i ?>'); layerHide('layer_job_urgencies');"><img src="images/<?php print $_SESSION['oUserVars']['images'] ?>/urgency-delete.png" border="0"></a>
			<a href="javascript: showBox('job-urgencychange', 'iUrgency=<?php print $i ?>'); layerHide('layer_job_urgencies');"><img src="images/<?php print $_SESSION['oUserVars']['images'] ?>/urgency-change.png" border="0"></a>
		</td>
		<td class="listentity"><?php print $oJobs[$_SESSION['iJobID']]->sUrgencies[$i] ?></td>
	</tr>
	<?php
}
?>
	<tr>
		<td class="boxbody small" style="text-align: center;" colspan="2">
			<?php print msg('They higher in the list, the higher the urgency.') ?>
		</td>
	</tr>
	<tr>
		<td class="boxbody center" colspan="2">
			<input type="button" value="<?php print msg('Cancel') ?>" onClick="layerHide('layer_job_urgencies');">
		</td>
	</tr>
</table>
</div>
